package com.abstractFactory;

public class Main {
    public static void main(String[] args) {
        User user = new User();
        Department department = new Department();

        IFactory factory = new SqlServerFactory();//IFactory factory = new AccessFactory()
        IUser iUser = factory.createUser();

        //然后可以进行数据的操作
    }
}
